﻿#include "aimodel.h"

void* GetNewComponent()
{
    return new AIModel();
}

const char* GetComponentName()
{
    return QStringLiteral("模型工具").toUtf8().data();
}

const char* GetComponentDescription()
{
    QString strDes = "";
    strDes += QStringLiteral("人工智能模型测试工具");
    strDes += "\n";
    return strDes.toUtf8().data();
}

AIModel::AIModel()
{
    m_modelApps = new ModelApplication();
}

void AIModel::Excute(const char* content)
{
    m_modelApps->show();
}

/*
#include <QtWidgets/QApplication>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    AIModel model;
    model.Excute("");
    return a.exec();
}
*/
